<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 18-8-13
 * Time: 上午9:15
 */

namespace webapi\modules\route;


use yii\base\Exception;
use yii\base\Module;

class Route extends Module
{
    public $controllerNamespace = 'webapi\modules\route\controllers';

    public function init()
    {
        if(!YII_DEBUG){
            throw new Exception('only accessed on debug evn!',500);
        }
        parent::init();

        // custom initialization code goes here
    }
}